<template>
  <h2 style="text-align: center;">学生信息统计</h2>
  <div class="g-container">
    <div class="g-wrap">
      <charts_pie1 />
      <charts_pie9 />
      <charts_pie4 />
      <charts_pie5 />
      <charts_pie7 />
      <charts_pie8 />
      <charts_pie2 />
      <charts_pie10 />
<!--      <charts_pie11 />-->
<!--      <charts_pie3 />-->
<!--      <charts_pie6 />-->
    </div>
  </div>
</template>

<script>
import charts_pie1 from './PieAwardData.vue'; // 引入图表组件
import charts_pie2 from './PieSexRatio.vue'; // 引入图表组件
import charts_pie3 from './PieGradeDistribution.vue'; // 引入图表组件
import charts_pie4 from './PiePoliticalStatus.vue'; // 引入图表组件
import charts_pie5 from './PieAwardsForClass.vue'; // 引入图表组件
import charts_pie6 from './PieGraduateDestination.vue'; // 引入图表组件
import charts_pie7 from './PieNumberOfSchool.vue'; // 引入图表组件
import charts_pie8 from './PieNumberOfProfessionals.vue'; // 引入图表组件
import charts_pie9 from './PieEthnicDistribution.vue'; // 引入图表组件
import charts_pie10 from './PieForeignLanguageCategory.vue'; // 引入图表组件
import charts_pie11 from './PiePhysicalTestScore.vue'; // 引入图表组件

export default {
  components: {
    charts_pie1, // 注册图表组件
    charts_pie2, // 注册图表组件
    charts_pie3, // 注册图表组件
    charts_pie4, // 注册图表组件
    charts_pie5, // 注册图表组件
    charts_pie6, // 注册图表组件
    charts_pie7, // 注册图表组件
    charts_pie8, // 注册图表组件
    charts_pie9, // 注册图表组件
    charts_pie10, // 注册图表组件
    charts_pie11, // 注册图表组件
  }
};
</script>


<style scoped>
.g-container {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: auto;
  margin: 10px auto;
}

.g-container::-webkit-scrollbar {
  width: 20px; /* 设置滚动条宽度 */
}

.g-container::-webkit-scrollbar-track {
  background: transparent; /* 设置滚动条轨道背景色 */
}

.g-container::-webkit-scrollbar-thumb {
  background-color: rgba(147, 242, 243, 0.71); /* 设置滚动条thumb颜色 */
  border-radius: 7px; /* 设置滚动条thumb的圆角 */
  border: 1px solid #aaa; /* 设置滚动条thumb的边框 */
}

.g-wrap {
  display: flex;
  gap: 10px;
  max-width: 100%;
}

.g-item {
  position: relative;
  flex-shrink: 0;
  width: 50vh;
  height: 48vh;
  border: 1px solid #ffffff;
}

.g-item::before {
  inset: 0;
  position: absolute;
  text-align: center;
}
@media (max-width: 768px) {
  .g-container {
    height: 100vw;
  }
  .g-item{
    width: 100vw;
    height: 90vw;
  }
}
</style>

